package com.snail.billing.json;

import org.json.JSONException;
import org.json.JSONObject;

public class JsonArea extends JsonBase {

	private String areaId;
	private String areaName;

	public JsonArea(String jsonString) {
		super(jsonString);
		try {
			if (getCode() == 1) {
				JSONObject json = new JSONObject(jsonString);
				if (json.has("areaId")) {
					areaId = json.getString("areaId");
				}
				if (json.has("areaName")) {
					areaName = json.getString("areaName");
				}
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
	}

	public String getAreaId() {
		return areaId;
	}

	public String getAreaName() {
		return areaName;
	}

}
